package com.czk.gulimall.ware.feign;

import com.czk.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/12/22 22:39
 */
@FeignClient(value = "guimall-gateway")
public interface ProductFeignService {
    /**
     * /product/skuinfo/info/{skuId} 找到商品服务 但是服务名是服务
     * /api/product/skuinfo/info/{skuId} 找到网关，给网关发请求 服务名是网关
     * @param skuId
     * @return
     */
    @RequestMapping("/api/product/skuinfo/info/{skuId}")
    R info(@PathVariable("skuId") Long skuId);
}
